<!DOCTYPE html>
{% extends 'base.html' %}
{% load static %}

{% block title %}
    -实验室列表
{% endblock %}

{% block css %}
{% endblock %}
{% block labHighlight %}
    active
{% endblock %}
{% block main_block %}
    <div style="float: right;width: 300px">
        <form method="get">
            <div class="input-group">
                <input type="text" name="name" style="margin-right: 10px" class="form-control"
                       placeholder="请输入实验室名称"
                       value="{{ search_data }}">
                <span class="input-group-btn">
                        <button class="btn btn-primary" type="submit">搜索</button>
                    </span>
            </div>
        </form>
    </div>
    <div class="container" style="margin-top: 2%">
{#        <h2>这里是关于实验室的相关信息</h2>#}
        <table class="table  table-hover">
            <thead>
            <tr>
                <th>序号</th>
                <th>实验室名称</th>
                <th>实验室详情</th>
            </tr>
            </thead>
            <tbody>
            {% for lab in labList %}
                <tr>
                    <th class="text" scope="row">{{ forloop.counter }}</th>
                    <td class="text">{{ lab.name }}</td>
                    <td class="text">{{ lab.description }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
        <ul class="pagination">
            {{ page_string }}
        </ul>
    </div>


{% endblock %}